public class Exer3_8_13 {
    public static void main(String[] args) {
        int i=1;
        int sum =0;
        while(i<=1000){
            if((i/10%10==3)&&i%7==0&&i%11==0){
                sum+=i;
            }
            i++;
        }
        System.out.println("这些数的和为："+sum);
    }
}
